﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XiamenQudianCoffee.model
{
    public  class CoffeeIOModel
    {
        private static CoffeeIOModel instance;
        private CoffeeIOModel() { }

        public static CoffeeIOModel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new CoffeeIOModel();
                }
                return instance;
            }
        }
        #region io板 do控制
        /// <summary>
        /// 去接盖1 开
        /// </summary>
        public string QJG1_start { get; set; } = "01 05 00 00 FF 00 8C 3A";
        /// <summary>
        /// 去接盖1 关
        /// </summary>
        public string QJG1_end { get; set; } = "01 05 00 00 00 00 CD CA";
        /// <summary>
        /// 去压盖1 开
        /// </summary>
        public string QYG1_start { get; set; } = "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 去压盖1 关
        /// </summary>
        public string QYG1_end { get; set; } = "01 05 00 01 00 00 9C 0A";
        /// <summary>
        /// 落盖电机下降1 开
        /// </summary>
        public string LGDJXJ1_start { get; set; } = "01 05 00 02 FF 00 2D FA";
        /// <summary>
        /// 落盖电机下降1 关
        /// </summary>
        public string LGDJXJ1_end { get; set; } = "01 05 00 02 00 00 6C 0A";
        /// <summary>
        /// 压盖电机前进1 开
        /// </summary>
        public string YGDJQJ1_start { get; set; } = "01 05 00 03 FF 00 7C 3A";
        /// <summary>
        /// 压盖电机前进1 关
        /// </summary>
        public string YGDJQJ1_end { get; set; } = "01 05 00 03 00 00 3D CA";
        /// <summary>
        /// 压盖电机后退1 开
        /// </summary>
        public string YGDJHT1_start { get; set; } = "01 05 00 04 FF 00 CD FB";
        /// <summary>
        /// 压盖电机后退1 关
        /// </summary>
        public string YGDJHT1_end { get; set; } = "01 05 00 04 00 00 8C 0B";
        /// <summary>
        /// 去接盖2 开
        /// </summary>
        public string QJG2_start { get; set; } = "01 05 00 05 FF 00 9C 3B";
        /// <summary>
        /// 去接盖2 关
        /// </summary>
        public string QJG2_end { get; set; } = "01 05 00 05 00 00 DD CB";
        /// <summary>
        /// 去压盖2 开
        /// </summary>
        public string QYG2_start { get; set; } = "01 05 00 06 FF 00 6C 3B";
        /// <summary>
        /// 去压盖2 关
        /// </summary>
        public string QYG2_end { get; set; } = "01 05 00 06 00 00 2D CB";
        /// <summary>
        /// 落盖电机下降2 开
        /// </summary>
        public string LGDJXJ2_start { get; set; } = "01 05 00 07 FF 00 3D FB";
        /// <summary>
        /// 落盖电机下降2 关
        /// </summary>
        public string LGDJXJ2_end { get; set; } = "01 05 00 07 00 00 7C 0B";
        /// <summary>
        /// 压盖电机前进2 开
        /// </summary>
        public string YGDJQJ2_start { get; set; } = "01 05 00 08 FF 00 0D F8";
        /// <summary>
        /// 压盖电机前进2 关
        /// </summary>
        public string YGDJQJ2_end { get; set; } = "01 05 00 08 00 00 4C 08";
        /// <summary>
        /// 压盖电机后退2 开
        /// </summary>
        public string YGDJHT2_start { get; set; } = "01 05 00 09 FF 00 5C 38";
        /// <summary>
        /// 压盖电机后退2 关
        /// </summary>
        public string YGDJHT2_end { get; set; } = "01 05 00 09 00 00 1D C8";
        /// <summary>
        /// 去接盖3 开
        /// </summary>
        public string QJG3_start { get; set; } = "01 05 00 0A FF 00 AC 38";
        /// <summary>
        /// 去接盖3 关
        /// </summary>
        /// 
        public string QJG3_end { get; set; } = "01 05 00 0A 00 00 ED C8";
        /// <summary>
        /// 去压盖3 开
        /// </summary>
        public string QYG3_start { get; set; } = "01 05 00 0B FF 00 FD F8";
        /// <summary>
        /// 去压盖3 关
        /// </summary>
        public string QYG3_end { get; set; } = "01 05 00 0B 00 00 BC 08";
        /// <summary>
        /// 落盖电机下降3 开
        /// </summary>
        public string LGDJXJ3_start { get; set; } = "01 05 00 0C FF 00 4C 39";
        /// <summary>
        /// 落盖电机下降3 关
        /// </summary>
        public string LGDJXJ3_end { get; set; } = "01 05 00 0C 00 00 0D C9";
        /// <summary>
        /// 压盖电机前进3 开
        /// </summary>
        public string YGDJQJ3_start { get; set; } = "01 05 00 0D FF 00 1D F9";
        /// <summary>
        /// 压盖电机前进3 关
        /// </summary>
        public string YGDJQJ3_end { get; set; } = "01 05 00 0D 00 00 5C 09";
        /// <summary>
        /// 压盖电机后退3 开
        /// </summary>
        public string YGDJHT3_start { get; set; } = "01 05 00 0E FF 00 ED F9";
        /// <summary>
        /// 压盖电机后退3 关
        /// </summary>
        public string YGDJHT3_end { get; set; } = "01 05 00 0E 00 00 AC 09";
        /// <summary>
        /// 推杆上1 开
        /// </summary>
        public string TGS1_start { get; set; } = "01 05 00 0F FF 00 BC 39";
        /// <summary>
        /// 推杆上1 关
        /// </summary>
        public string TGS1_end { get; set; } = "01 05 00 0F 00 00 FD C9";
        /// <summary>
        /// 推杆下1 开
        /// </summary>
        public string TGX1_start { get; set; } = "01 05 00 10 FF 00 8D FF";
        /// <summary>
        /// 推杆下1 关
        /// </summary>
        /// 
        public string TGX1_end { get; set; } = "01 05 00 10 00 00 CC 0F";
        /// <summary>
        /// 推杆上2 开
        /// </summary>
        public string TGS2_start { get; set; } = "01 05 00 11 FF 00 DC 3F";
        /// <summary>
        /// 推杆上2 关
        /// </summary>
        /// 
        public string TGS2_end { get; set; } = "01 05 00 11 00 00 9D CF";
        /// <summary>
        /// 推杆下2 开
        /// </summary>
        public string TGX2_start { get; set; } = "01 05 00 12 FF 00 2C 3F";
        /// <summary>
        /// 推杆下2 关
        /// </summary>
        /// 
        public string TGX2_end { get; set; } = "01 05 00 12 00 00 6D CF";
        /// <summary>
        /// 换水阀 开
        /// </summary>
        public string HSF_start { get; set; } = "01 05 00 13 FF 00 7D FF";
        /// <summary>
        /// 换水阀 关
        /// </summary>
        public string HSF_end { get; set; } = "01 05 00 13 00 00 3C 0F";
        /// <summary>
        /// 落杯1 开
        /// </summary>
        public string LB1_start { get; set; } = "01 05 00 14 FF 00 CC 3E";
        /// <summary>
        /// 落杯1 关
        /// </summary>
        /// 
        public string LB1_end { get; set; } = "01 05 00 14 00 00 8D CE";
        /// <summary>
        /// 落盖1 开
        /// </summary>
        public string LG1_start { get; set; } = "01 05 00 15 FF 00 9D FE";
        /// <summary>
        /// 落盖1 关
        /// </summary>
        public string LG1_end { get; set; } = "01 05 00 15 00 00 DC 0E";
        /// <summary>
        /// 落盖2 开
        /// </summary>
        public string LG2_start { get; set; } = "01 05 00 16 FF 00 6D FE";
        /// <summary>
        /// 落盖2 关
        /// </summary>
        public string LG2_end { get; set; } = "01 05 00 16 00 00 2C 0E";
        /// <summary>
        /// 落盖3 开
        /// </summary>
        public string LG3_start { get; set; } = "01 05 00 17 FF 00 3C 3E";
        /// <summary>
        /// 落盖3 关
        /// </summary>
        /// 
        public string LG3_end { get; set; } = "01 05 00 17 00 00 7D CE";
        /// <summary>
        /// 果糖1 开
        /// </summary>
        public string GT1_start { get; set; } = "01 05 00 18 FF 00 0C 3D";
        /// <summary>
        /// 果糖1 关
        /// </summary>
        public string GT1_end { get; set; } = "01 05 00 18 00 00 4D CD";
        /// <summary>
        /// 果糖2 开
        /// </summary>
        public string GT2_start { get; set; } = "01 05 00 19 FF 00 5D FD";
        /// <summary>
        /// 果糖2 关
        /// </summary>
        /// 
        public string GT2_end { get; set; } = "01 05 00 19 00 00 1C 0D";
        /// <summary>
        /// 果糖3 开
        /// </summary>
        public string GT3_start { get; set; } = "01 05 00 1A FF 00 AD FD";
        /// <summary>
        /// 果糖3 关
        /// </summary>
        public string GT3_end { get; set; } = "01 05 00 1A 00 00 EC 0D";
        /// <summary>
        /// 果糖4 开
        /// </summary>
        public string GT4_start { get; set; } = "01 05 00 1B FF 00 FC 3D";
        /// <summary>
        /// 果糖4 关
        /// </summary>
        public string GT4_end { get; set; } = "01 05 00 1B 00 00 BD CD";
        /// <summary>
        /// 果糖5 开
        /// </summary>
        public string GT5_start { get; set; } = "01 05 00 1C FF 00 4D FC";
        /// <summary>
        /// 果糖5 关
        /// </summary>
        public string GT5_end { get; set; } = "01 05 00 1C 00 00 0C 0C";
        /// <summary>
        /// 果糖6 开
        /// </summary>
        public string GT6_start { get; set; } = "01 05 00 1D FF 00 1C 3C";
        /// <summary>
        /// 果糖6 关
        /// </summary>
        public string GT6_end { get; set; } = "01 05 00 1D 00 00 5D CC";
        /// <summary>
        /// 水阀1 开
        /// </summary>
        public string SF1_start { get; set; } = "01 05 00 1E FF 00 EC 3C";
        /// <summary>
        /// 水阀1 关
        /// </summary>
        public string SF1_end { get; set; } = "01 05 00 1E 00 00 AD CC";
        /// <summary>
        /// 水阀2 开
        /// </summary>
        public string SF2_start { get; set; } = "01 05 00 1F FF 00 BD FC";
        /// <summary>
        /// 水阀2 关
        /// </summary>
        public string SF2_end { get; set; } = "01 05 00 1F 00 00 FC 0C";
        /// <summary>
        /// 水阀3 开
        /// </summary>
        public string SF3_start { get; set; } = "01 05 00 20 FF 00 8D F0";
        /// <summary>
        /// 水阀3 关
        /// </summary>
        public string SF3_end { get; set; } = "01 05 00 20 00 00 CC 00";
        /// <summary>
        /// 水阀4 开
        /// </summary>
        public string SF4_start { get; set; } = "01 05 00 21 FF 00 DC 30";
        /// <summary>
        /// 水阀4 关
        /// </summary>
        public string SF4_end { get; set; } = "01 05 00 21 00 00 9D C0";
        /// <summary>
        /// 水阀5 开
        /// </summary>
        public string SF5_start { get; set; } = "01 05 00 22 FF 00 2C 30";
        /// <summary>
        /// 水阀5 关
        /// </summary>
        public string SF5_end { get; set; } = "01 05 00 22 00 00 6D C0";
        /// <summary>
        /// 弃杯前进 开
        /// </summary>
        public string QBQJ_start { get; set; } = "01 05 00 23 FF 00 7D F0";
        /// <summary>
        /// 弃杯前进 关
        /// </summary>
        public string QBQJ_end { get; set; } = "01 05 00 23 00 00 3C 00";
        /// <summary>
        /// 弃杯后退 开
        /// </summary>
        public string QBHT_start { get; set; } = "01 05 00 24 FF 00 CC 31";
        /// <summary>
        /// 弃杯后退 关
        /// </summary>
        public string QBHT_end { get; set; } = "01 05 00 24 00 00 8D C1";
        /// <summary>
        /// 负压机1 开
        /// </summary>
        public string FYJ1_start { get; set; } = "01 05 00 25 FF 00 9D F1";
        /// <summary>
        /// 负压机1 关
        /// </summary>
        public string FYJ1_end { get; set; } = "01 05 00 25 00 00 DC 01";
        /// <summary>
        /// 负压机2 开
        /// </summary>
        public string FYJ2_start { get; set; } = "01 05 00 26 FF 00 6D F1";
        /// <summary>
        /// 负压机2 关
        /// </summary>
        public string FYJ2_end { get; set; } = "01 05 00 26 00 00 2C 01";
        /// <summary>
        /// 机器人远程开机 开
        /// </summary>
        public string RobotPowerOn_start { get; set; } = "01 05 00 2F FF 00 BD F3";
        /// <summary>
        /// 机器人远程开机 关
        /// </summary>
        public string RobotPowerOn_end { get; set; } = "01 05 00 2F 00 00 FC 03";
        #endregion
        #region 查询数据
        public string AllMessage1 { get; set; } = "02 04 00 00 00 32 71 EC";
        public string AllMessage2 { get; set; } = "03 04 00 00 00 32 70 3D";
        #endregion
    }
    public class EmailShow
    {
        public string title { get; set; } = "Shortage warning";
        public int deviceId { get; set; } = IPorPortInfo.Instance.deviceID;
        public string content { get; set; } = "";
        public string fromname { get; set; } = "Coffee Shop";
    }
}
